﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace ClassLibrary1
{
    public class Log
    {
        public static string filename = "./\\log\\log.txt"; //(Application.StartupPath + @"\log\log.txt");

        public static void appendLog(string expString)
        {
            string str = "./\\log";
            if (!Directory.Exists(str))//(Application.StartupPath + @"\log"))
            {
                Directory.CreateDirectory(str);//(Application.StartupPath + @"\log");
            }
            File.AppendAllText(filename, "\r\n" + StringTool.StringUtil.getDateTimeString() + ":" + expString);
        }

        public static void appendLog(string desc, string code)
        {
        }
    }
}
